<?php
namespace App\Models\Relations;

/**
 *
 * @author Joker
 *        
 */
trait CategoryTrait
{
    public function categorys() {
        return $this->hasOne('App\Models\Category','cat_id','cat_id');
    }
    
    public function category() {
        return $this->hasOne('App\Models\Category','cat_id','cat_id');
    }
    
}